title {Example rounding methods}
units mm
put {m2cuttop.tor} tor V {0 0 500}  H {0 0 1}  r_a 250 r_h 50
put {m2bottom.tor} tor V {0 0 -450}  H {0 0 1}  r_a 200 r_h 50
put {cylinder.rcc} tgc V {0 0 -500}  H {0 0 1000}  A {250 0 0}  B {0 250 0}  C {250 0 0}  D {0 250 0} 
put {fillends.rcc} tgc V {0 0 -550}  H {0 0 1100}  A {0 -200 0}  B {200 0 0}  C {0 -200 0}  D {200 0 0} 
put {filltop.rcc} tgc V {0 0 500}  H {0 0 50}  A {0 -200 0}  B {200 0 0}  C {0 -200 0}  D {200 0 0} 
put {bottom.tor} tor V {0 0 -500}  H {0 0 -1}  r_a 200 r_h 50
put {cylinder.r} comb region yes tree {l cylinder.rcc}
attr set {cylinder.r} {region} {R} {region_id} {1003} {material_id} {1} {los} {100}
put {m2top.tor} tor V {0 0 450}  H {0 0 1}  r_a 200 r_h 50
put {m2cutbottom.tor} tor V {0 0 -500}  H {0 0 1}  r_a 250 r_h 50
put {method3.r} comb region yes tree {l method3}
attr set {method3.r} {region} {R} {region_id} {1000} {material_id} {1} {los} {100}
put {method2.r} comb region yes tree {l method2}
attr set {method2.r} {region} {R} {region_id} {1002} {material_id} {1} {los} {100}
put {method1.r} comb region yes tree {l method1}
attr set {method1.r} {region} {R} {region_id} {1000} {material_id} {1} {los} {100}
put {top.tor} tor V {0 0 500}  H {0 0 1}  r_a 200 r_h 50
put {method3} comb region no tree {u {u {u {l cylinder.rcc} {l top.tor}} {u {l bottom.tor} {l filltop.rcc}}} {l fillbottom.rcc}}
put {method2} comb region no tree {u {u {- {- {l cylinder.rcc} {l m2cuttop.tor}} {l m2cutbottom.tor}} {l m2top.tor}} {l m2bottom.tor}}
put {method1} comb region no tree {u {u {l cylinder.rcc} {l fillends.rcc}} {u {l top.tor} {l bottom.tor}}}
put {fillbottom.rcc} tgc V {0 0 -550}  H {0 0 50}  A {0 -200 0}  B {200 0 0}  C {0 -200 0}  D {200 0 0} 
put {all.g} comb region no tree {u {u {l method1.r {1 0 0 1000  0 1 0 -1000  0 0 1 0  0 0 0 1}} {l method2.r {1 0 0 1000  0 1 0 0  0 0 1 0  0 0 0 1}}} {u {l method3.r {1 0 0 1000  0 1 0 1000  0 0 1 0  0 0 0 1}} {l cylinder.r}}}
